package com.platform.module.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 *
 * </p>
 *
 * @author pxj
 * @since 2025-02-12
 */
@Getter
@Setter
@TableName("tb_admin_user")
public class TbAdminUser {

    /**
     * 用户名
     */
    @TableId(value = "user_id", type = IdType.AUTO)
    private String userId;

    /**
     * 密码
     */
    @TableField("password")
    private String password;

    /**
     * 名称
     */
    @TableField("user_name")
    private String userName;

    /**
     * 角色,0超级管理员
     */
    @TableField("role")
    private Byte role;

    public static final String USER_ID = "user_id";

    public static final String PASSWORD = "password";

    public static final String USER_NAME = "user_name";

    public static final String ROLE = "role";
}
